<template>
	<view>
		<view class="info-content" v-html="content"></view>
	</view>
</template>

<script>
	export default {
		components: {

		},
		data() {
			return {
				urlQuery: '',
				info: '',
				content: '飞飞飞飞飞',
			};
		},
		onLoad(opts) {
			this.urlQuery = opts;
		},
		mounted() {

		},
		methods: {
			BackPage() {
				let pages = getCurrentPages();
				let prevPage = pages[pages.length - 2];
				if(prevPage){
					prevPage.$vm.isPlatform = true;
				}
				uni.navigateBack();
			},
			// 普通后台配置协议
			getAgreement(){
				getAgreement({
					data: {
						code: this.urlQuery.code
					},
					success: (res)=>{
						if(res.code == 200){
							this.info = res.data;
							this.content = this.info.content
							// 动态设置导航标题
							uni.setNavigationBarTitle({
							　　title: this.info.title,
							})
						}else{
							this.$refs.toast.showToast(res.msg);
						}
					}
				})
			},
		}
	}
</script>

<style lang="scss">
.info-content{
	padding: 30rpx;
	font-size: ($font-size-base);
}
</style>
